package com.qyhl.webtv.module_live.teletext.detail.popview;

import com.qyhl.webtv.commonlib.entity.live.ShoppingListBean;

import java.util.List;

public class TeleTextShopPresenter implements TeleTextShopContract.TeleTextShopPresenter {
    private TeleTextShopContract.TeleTextShopView mView;
    private TeleTextShopModel mModel;

    public TeleTextShopPresenter(TeleTextShopContract.TeleTextShopView mView) {
        this.mView = mView;
        this.mModel = new TeleTextShopModel(this);
    }

    @Override
    public void getShopList(String sceneId, String page) {
        mModel.getShopList(sceneId, page);
    }

    @Override
    public void setList(List<ShoppingListBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
